package com.qidianit.mes.sys.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.Supplier;
import org.springframework.transaction.annotation.Transactional;


/**
 * @Author: YKYB
 * @Date: 2025/9/17 13:43
 * @Description:
 */
@Transactional
public interface SupplierService {

    /**
     * @param supplier
     * @param pageNum
     * @param pageSize
     * @return
     */
    Result<PageInfo<Supplier>> selectList(Supplier supplier, int pageNum, int pageSize);

    /**
     * @param code
     * @return
     */
    Result<Supplier> selectByCode(String code);

    /**
     * @param supplier
     * @return
     */
    Result<Supplier> saveSupplier(Supplier supplier);

    /**
     * @param id
     * @return
     */
    Result deleteById(Long id);

    /**
     * @param supplier
     * @return
     */
    Result updateById(Supplier supplier);

    /**
     * @param ids
     * @return
     */
    Result batchDelete(Long[] ids);
}
